<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1">
    <title>天策社区</title>
    <link rel="stylesheet" href="../../front/css/common.css">
    <script type="text/javascript" src="../../front/js/jquery.min.js"></script>
</head>
<body>
    <div class="ly_header">天策社区<div class="ly_right"><a style="" th:href="@{/front/message/toMessage.action}"></a></div></div>
    <div class="ly_indexmain">
        <div th:if="${#strings.isEmpty(memberVO.memberType)}">
            <div class="ly_myself tourists">
                <div class="ly_myidentity">
                    <div class="ly_mypicture">
                        <img class="mypicture" th:src="${memberVO.wxHeadPhoto}" alt="">
                    </div>
                    <div class="ly_myname">
                        <h3><span class="dw">[[${memberVO.wxNickName}]]<a class="dw_r ahref" th:href="@{/front/memberCenter/toMemberRegister.action}"></a></span></h3>
                        <p><img src="../../front/image/tourists.png" alt=""><span style="padding-left: 5px;">游客</span></p>
                    </div>
                    <div style="clear: both"></div>
                </div>
                <div class="ly_mywealth">
                    <div class="box2 left registeredbtn">
                        <a class="registered_btn" th:href="@{/front/memberCenter/toMemberRegister.action}">注册会员</a>
                    </div>
                    <div class="box2 left text_right dw">
                        <h3>[[${memberVO.totalIntegral}]]</h3>
                        <p class="dw triangle">可用积分</p>
                        <a class="dw_r ahref" th:href="@{/front/integration/toIntegral.action}"></a>
                    </div>
                    <div style="clear: both"></div>
                </div>
            </div>
        </div>
        <div th:if="${memberVO.memberType eq 'GUEST'}">
            <div class="ly_myself tourists">
                <div class="ly_myidentity">
                    <div class="ly_mypicture">
                        <img class="mypicture" th:src="${memberVO.wxHeadPhoto}" alt="">
                    </div>
                    <div class="ly_myname">
                        <h3><span class="dw">[[${memberVO.wxNickName}]]<a class="dw_r ahref" th:href="@{/front/memberCenter/toMemberRegister.action}"></a></span></h3>
                        <p><img src="../../front/image/tourists.png" alt=""><span style="padding-left: 5px;">游客</span></p>
                    </div>
                    <div style="clear: both"></div>
                </div>
                <div class="ly_mywealth">
                    <div class="box2 left registeredbtn">
                        <a class="registered_btn" th:href="@{/front/memberCenter/toMemberRegister.action}">注册会员</a>
                    </div>
                    <div class="box2 left text_right dw">
                        <h3>[[${memberVO.totalIntegral}]]</h3>
                        <p class="dw triangle">可用积分</p>
                        <a class="dw_r ahref" th:href="@{/front/integration/toIntegral.action}"></a>
                    </div>
                    <div style="clear: both"></div>
                </div>
            </div>
        </div>

        <div th:if="${memberVO.memberType eq 'REGULAR_MEMBER'}">
            <div class="ly_myself ordinary">
                <div class="ly_myidentity">
                    <div class="ly_mypicture">
                        <img class="mypicture" th:src="${memberVO.wxHeadPhoto}" alt="">
                    </div>
                    <div class="ly_myname">
                        <h3><span class="dw">[[${memberVO.wxNickName}]]<a class="dw_r ahref" th:href="@{/front/memberCenter/toMemberRegister.action}"></a></span></h3>
                        <p><img src="../../front/image/icon_v3.png" alt=""><span style="padding-left: 5px;">普通会员/[[${memberVO.memberCardNo}]]</span></p>
                    </div>
                    <div style="clear: both"></div>
                </div>
                <div class="ly_mywealth">
                    <div class="box2 left registeredbtn">
                        <a class="registered_btn" th:href="@{/front/memberCenter/toApplyMemberAuth.action}">申请认证</a>
                    </div>
                    <div class="box2 left text_right">
                        <div class="box2 left dw">
                            <h3>[[${memberVO.totalCredit}]]</h3>
                            <p class="dw triangle">天策府宝</p>
                            <a class="dw_r ahref" th:href="@{/front/integration/toIntegral.action}"></a>
                        </div>
                        <div class="box2 left dw">
                            <h3>[[${memberVO.totalIntegral}]]</h3>
                            <p class="dw triangle">可用积分</p>
                            <a class="dw_r ahref" th:href="@{/front/integration/toIntegral.action}"></a>
                        </div>
                    </div>
                    <div style="clear: both"></div>
                </div>
            </div>
        </div>

        <div th:if="${memberVO.memberType eq 'VERIFIED_MEMBER'}">
            <div class="ly_myself general">
                <div class="ly_myidentity">
                    <div class="ly_mypicture">
                        <img class="mypicture" th:src="${memberVO.wxHeadPhoto}" alt="">
                    </div>
                    <div class="ly_myname">
                        <h3><span class="dw">[[${memberVO.wxNickName}]]<a class="dw_r ahref" th:href="@{/front/memberCenter/toMemberRegister.action}"></a></span></h3>
                        <p><img class="left" src="../../front/image/icon_v2.png" alt=""><span class="left" style="line-height: 30px;padding-left: 5px;">/[[${memberVO.memberCardNo}]]</span></p>
                    </div>
                    <div style="clear: both"></div>
                </div>
                <div class="ly_mywealth">
                    <div class="box2 left registeredstar">
                        <img src="../../front/image/rank_star_1.png" alt="">
                    </div>
                    <div class="box2 left text_right">
                        <div class="box2 left dw">
                            <h3>[[${memberVO.totalCredit}]]</h3>
                            <p class="dw triangle">天策府宝</p>
                            <a class="dw_r ahref" th:href="@{/front/integration/toIntegral.action}"></a>
                        </div>
                        <div class="box2 left dw">
                            <h3>[[${memberVO.totalIntegral}]]</h3>
                            <p class="dw triangle">可用积分</p>
                            <a class="dw_r ahref" th:href="@{/front/integration/toIntegral.action}"></a>
                        </div>
                    </div>
                    <div style="clear: both"></div>
                </div>
            </div>
        </div>

        <div th:if="${memberVO.memberType eq 'DUTY_MANAGER'}">
            <div class="ly_myself special">
                <div class="ly_myidentity">
                    <div class="ly_mypicture dw">
                        <img class="mypicture" th:src="${memberVO.wxHeadPhoto}" alt="">
                        <img class="dw_r" src="../../front/image/paetner.png" alt="">
                    </div>
                    <div class="ly_myname">
                        <h3><span class="dw">[[${memberVO.wxNickName}]]<a class="dw_r ahref" th:href="@{/front/memberCenter/toMemberRegister.action}"></a></span></h3>
                        <p><img class="left" src="../../front/image/icon_v1.png" alt=""><span class="left" style="line-height: 30px;padding-left: 5px;">/[[${memberVO.memberCardNo}]]</span></p>
                    </div>
                    <div style="clear: both"></div>
                </div>
                <div class="ly_mywealth">
                    <div class="box2 left registeredstar">
                        <img src="../../front/image/rank_star_1.png" alt="">
                    </div>
                    <div class="box2 left text_right">
                        <div class="box2 left dw">
                            <h3>[[${memberVO.totalCredit}]]</h3>
                            <p class="dw triangle">天策府宝</p>
                            <a class="dw_r ahref" th:href="@{/front/integration/toIntegral.action}"></a>
                        </div>
                        <div class="box2 left dw">
                            <h3>[[${memberVO.totalIntegral}]]</h3>
                            <p class="dw triangle">可用积分</p>
                            <a class="dw_r ahref" th:href="@{/front/integration/toIntegral.action}"></a>
                        </div>
                    </div>
                    <div style="clear: both"></div>
                </div>
            </div>
        </div>

        <div class="ly_sign_in dw">
            <img src="../../front/image/ledintegral.png" alt="" style="padding: 7px;">
            <div th:if="${memberVO.signInStatus eq 'SIGN_IN'}">
                <div class=" sign_in dw_r no" >
                    <a class="sign_in_btn" href="javaScript:;">签到</a>
                </div>
            </div>
            <div th:if="${memberVO.signInStatus eq 'NOT_SIGN_IN'}">
                <div class=" sign_in dw_r" >
                    <a class="sign_in_btn" href="javaScript:;">签到</a>
                </div>
            </div>
            <div th:if="${#strings.isEmpty(memberVO.signInStatus)}">
                <div class=" sign_in dw_r no" >
                    <a class="sign_in_btn" href="javaScript:;">签到</a>
                </div>
            </div>
        </div>
        <div class="service">
            <img style="height: 17px" src="../../front/image/exclusive.png" alt="">
            <span class="servicetitle">开通会员 享会员福利</span>
        </div>
        <div class="members">
            <div class="box2 left dw">
                <div class="members_list marr5 activity">
                    <a href="javaScript:;">活动</a>
                </div>
                <a class="dw_r ahref" th:href="@{/front/activity/toActivity.action}"></a>
            </div>
            <div class="box2 left dw">
                <div class="members_list marl5 release">
                    <a href="javaScript:;">发布信息</a>
                </div>
                <a class="dw_r ahref" th:href="@{/front/publishInfo/toPubmessage.action}"></a>
            </div>
            <div class="box2 left dw">
                <div class="members_list marr5 continue">
                    <a th:href="@{/front/task/toAccepttesk.action}">任务承接</a>
                </div>
                <a class="dw_r ahref" th:href="@{/front/task/toAccepttesk.action}"></a>
            </div>
            <div class="box2 left dw">
                <div class="members_list marl5 applyfor">
                    <a href="javaScript:;">申请会议室</a>
                </div>
                <a class="dw_r ahref" th:href="@{/front/meetingRoom/toApplyMeetingRoom.action}"></a>
            </div>
            <div class="box2 left dw">
                <div class="members_list marr5 exceptional">
                    <a href="javaScript:;">签到/赞赏</a>
                </div>
                <a class="dw_r ahref" th:href="@{/front/signIn/toSignreciate.action}"></a>
            </div>

            <div class="box2 left dw">
                <div class="members_list marl5 onduty">
                    <a href="javaScript:;">社区值班</a>
                </div>
                <a class="dw_r ahref" th:href="@{/front/duty/toCommunitywork.action}"></a>
            </div>
            <div style="clear: both"></div>
        </div>
        <div class="meeting">
            <div class="left box5 text_center">

                <img src="../../front/image/icon_room1.png" alt="">
                <div class="meetroom">会议室一</div>

            </div>
            <div class="left box5 text_center">
                <img src="../../front/image/icon_room1.png" alt="">
                <div class="meetroom">会议室二</div>

            </div>
            <div class="left box5 text_center">
                <img src="../../front/image/icon_room2.png" alt="">
                <div class="meetroom gray">会议室三</div>

            </div>
            <div class="left box5 text_center">
            </div>
            <div class="right box5 text_center">
                <a class="meetroomdetails" th:href="@{/front/conventionCenter/toMeettype.action}">详情</a>
            </div>
            <div style="clear: both"></div>
        </div>
    </div>
    <div id="mask" class="hide"></div>
    <div class="signIn hide">
        <h4 class="signInbg">每日签到</h4>
        <div class="color6 mart20" style="font-size: 0.8em">签到成功</div>
        <div class="text_center mart20"><img src="../../front/newimg/money.png" style="height: 44px" alt=""></div>
        <p class="signInTitle">+<span style="font-size: 1.5em;">10</span>分</p>
        <hr />
        <div class="signInBtn">确定</div>
    </div>
    <div class="hide" id="memberId">[[${memberVO.memberId}]]</div>
</body>


<script type="text/javascript" th:inline="javascript">
    /*<![CDATA[*/
    ctxPath = /*[[@{/}]]*/ '';
    /*]]>*/
    $(document).on("click",".sign_in",function(){

        var that=$(this);
        if(that.hasClass("no")){
            return false;
        }
        $.ajax({
            url:ctxPath+"/front/signIn/addSignIn.action",
            type: "post",
            dataType:"json",
            data: {signInType:"DAILY_SIGN_IN",memberId:$("#memberId").text()},
            success:function(data){
                if(data!=null && data.success){
                    that.addClass("no");
                    $("#mask").removeClass("hide");
                    $(".signIn").removeClass("hide");
                }else {
                    alert(data.message);
                }

            },
            error:function(){
                alert("签到失败");
            }
        });

    })
    $(document).on("click",".signInBtn",function () {
        $("#mask").addClass("hide");
        $(".signIn").addClass("hide");
    })
</script>
</html>